package com.jinxin.platform.cdsmsmgr.pojo.enums;

/**
 * @Author 那个男人
 * @Date 2023/1/6 15:47
 * @Version 1.0
 */
public enum AccountTypeEnum {
    ALI(1,"阿里云账号"),
    TENXUN(2,"腾讯云账号");

    private int code;
    private String desc;

    AccountTypeEnum(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }
    // 普通方法
    public static String getDesc(int code) {
        for (AccountTypeEnum c : AccountTypeEnum.values()) {
            if (c.getCode() == code) {
                return c.desc;
            }
        }
        return null;
    }

    public int getCode() {
        return code;
    }

    public void setType(int code) {
        this.code = code;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
